//
//  SquareView.m
//  ShovelBattle
//
//  Created by Eleve on 16/03/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "SquareView.h"

@implementation SquareView

- (id)init
{
    self = [super init];
    if (self) {
        [self setUserInteractionEnabled:NO];
    }
    return self;
}

- (void)addCross
{
    UIImageView *image = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"treasureCross.png"]];
    [image setFrame:CGRectMake(0, 0, 40, 40)];
    [self addSubview:image];
    [image release];
}

- (void)addHole
{
    UIImageView *image = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"mapHole.png"]];
    [image setFrame:CGRectMake(0, 0, 40, 40)];
    [self addSubview:image];
    [image release];
}

- (void)addTreasure
{
    UIImageView *image = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"mapTreasure.png"]];
    [image setFrame:CGRectMake(0, 0, 40, 40)];
    [self addSubview:image];
    [image release];
}

@end
